Create a new asset group.
Changed onCreate a new asset group with the specified parameters.
- An asset group is a custom group of assets based on how you would like to manage your accounts.
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_group": {
"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
},
"asset_group_description": "Asset groups that has ad accounts shared in Canada",
"asset_group_name": "Canada Ad Accounts",
"asset_group_types": [
"BRAND",
"LOCATION_OR_LANGUAGE",
"PRODUCT_LINE",
"OTHER"
]
}Response
The request has succeeded.
Example response
{
"asset_group": {
"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 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
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 - info
added the success response with the status
- breaking
- info
added the optional property
/to the response with the status
- info