Skip to content

Create directory listing item

POST
/v1/directory_listings/{directory_listing_id}/items
curl --request POST \
--url http://api.disclosebot.localdev:3000/v1/directory_listings/example/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{ "data": { "type": "example", "attributes": { "listable_type": "example", "listable_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } } }'
directory_listing_id
required
string
Media type application/vnd.api+json
object
data
required
object
type
string
attributes
object
listable_type
string
listable_id
string format: uuid
Example generated
{
"data": {
"type": "example",
"attributes": {
"listable_type": "example",
"listable_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
}
}

Created

Unprocessable entity