Update asset groups.
Changed onUpdate a batch of asset groups with the specified parameters.
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.
Path parameters
Unique identifier of the requesting business.
Request body
Example request
{
"asset_groups_to_update": [
{
"asset_group_types": [
"BRAND",
"LOCATION_OR_LANGUAGE",
"PRODUCT_LINE",
"OTHER"
]
}
],
"updated_asset_groups": [
{
"ad_accounts_ids": [
"549755885175"
],
"asset_group_description": "Asset group that has ad accounts used in Canada",
"asset_group_name": "Canada Ad Accounts",
"asset_group_types": [
"LOCATION_OR_LANGUAGE"
],
"catalogs_ids": [
"4836859046874"
],
"created_by": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_time": 1646767577816,
"id": "666791336903426391",
"owner": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"profiles_ids": [
"630433785246278264"
],
"updated_time": 1646767577816
}
]
}Response
The request has succeeded.
Example response
{
"updated_asset_groups": [
{
"ad_accounts_ids": [
"549755885175"
],
"asset_group_description": "Asset group that has ad accounts used in Canada",
"asset_group_name": "Canada Ad Accounts",
"asset_group_types": [
"LOCATION_OR_LANGUAGE"
],
"catalogs_ids": [
"4836859046874"
],
"created_by": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_time": 1646767577816,
"id": "666791336903426391",
"owner": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"profiles_ids": [
"630433785246278264"
],
"updated_time": 1646767577816
}
]
}Changes
- breaking
the
//response's property type changed fromobjectto no type for status - breaking
the
//response's property type changed fromobjectto no type for 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
the response optional property
became read-only for the status - info
the response optional property
became read-only for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status
- breaking
- info
added the optional property
//to the response with the status
- info