Update promotions
Changed onUpdate multiple promotions.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of an ad account.
Request body
Example request
[
{
"promotion_type": "VARIABLE",
"template_values": [
{
"amount": 100,
"custom_text": "My promotion",
"percent": 10
}
]
}
]Response
The request has succeeded.
Example response
{
"promotions": [
{
"data": {
"promotion_type": "VARIABLE",
"status": "ACTIVE",
"template_values": [
{
"amount": 100,
"custom_text": "My promotion",
"percent": 10
}
]
},
"exception": {
"code": 2,
"message": "Advertiser not found."
}
}
]
}Changes
- breaking
added the new required request property
/ - warning
removed
subschema #2from therequest propertyallOflist - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional 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 optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
removed
subschema #2from the//response propertyallOflist for the response status - info
the response property
///became required for the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status
- breaking
- warning
added the new
CUSTOMenum value to the////response property for the response status - info
added the new optional request property
//// - info
added the new
CUSTOMenum value to the request property// - info
added the optional property
//////to the response with the status
- warning