Get publisher states
GET/api/v2/presence/publisher-states
Method to retrieve businesses diffusions states on publishers.
Can be filtered by:
- Business IDs
- Publishers
- States
Request
Query Parameters
Possible values: >= 1
Default value: 1
Page of items to fetch
Possible values: >= 1
Number of items per page.
Limit results to a specific businesses
Limit results to a specific publisher
Possible values: [success
, pending
, to_configure
]
Limit results to a specific states
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
businesses
object
Maps business ids to their presence states
property name*
object
publishers
object
property name*
object
Maps publisher names to their presence states
error_type
object
anyOf
string
Possible values: [PUBLISHER_CONNEXION
, USER_INPUT
, EXTERNAL
]
url_on_publisher
object
anyOf
string
{
"businesses": {}
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}