/v1/channel-connections/{id}/listings (POST)
POST
/v1/channel-connections/{id}/listings
const url = 'http://localhost:8787/v1/channel-connections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/listings';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"resourceId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/channel-connections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/listings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Body
Section titled “Request Body”Media typeapplication/json
object
resourceId
required
string format: uuid
Examplegenerated
{ "resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Maps this resource to this connection — required before any import can write blocks for it.
Media typeapplication/json
object
connectionId
required
string format: uuid
id
required
string format: uuid
resourceId
required
string format: uuid
Examplegenerated
{ "connectionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}No such channel connection, or no such resource, for this tenant.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "resource_not_found"}This resource is already mapped to this connection.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "resource_not_found"}