Accept or decline an invite/request
Changed onAccept or decline invites or requests.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesbiz_access:read, biz_access:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"invites": [
{
"action": {
"asset_id_to_permissions": {
"549760723247": [
"ANALYST"
],
"549760723248": [
"ANALYST",
"ADMIN"
],
"809944451643622187": [
"PROFILE_PUBLISHER"
]
}
}
}
]
}Response
The request has succeeded.
Example response
{
"items": [
{
"exception": {
"code": 403,
"invite_or_request_id": "383791336903426391",
"message": "You hit the maximum number of pending invites allowed.",
"users_or_partner_ids": [
"businessMember0101",
"business+member@business.com"
]
},
"invite": {
"id": "383791336903426391",
"user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
}
}
}
]
}Changes
- breaking
the
//response's property type changed fromobjectto no type for status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - info
added the new
BIZ_PINNER_LIST_SHARERenum value to the request property///// - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added to the
//response propertyallOflist for the response status
- breaking
- info
added the new
CONSUMER_USERenum value to the request property/////
- info