Asset Programs
An Asset Program is a container for one or more Asset Types .
Asset Program Model
Attributes
Create Asset Program experimental
This endpoint allows you to create an Asset Program .
Attributes
-
name
string required -
accountId
string required -
assetTypes
array required -
mediaUploadId
string
Errors
-
ACCOUNT_TYPE_INVALID
403 -
MEDIA_UPLOAD_INVALID
403
curl -X POST \ https://service.centrapay.com/api/asset-programs \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "name": "My Asset Program", "assetTypes": [ "payap-debit" ], "mediaUploadId": "8aoMfscvtuewsuJzmzBzAs", "accountId": "Jaim1Cu1Q55uooxSens6yk"}'
{ "id": "WRhAxxWpTKb5U7pXyxQjjY", "accountId": "Jaim1Cu1Q55uooxSens6yk", "assetTypes": [ "payap-debit" ], "createdAt": "2021-08-25T00:02:49.488Z", "createdBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99", "mediaUploadId": "8aoMfscvtuewsuJzmzBzAs", "name": "My Asset Program", "test": true, "updatedAt": "2021-08-25T00:02:49.488Z", "updatedBy": "crn::user:b657195e-dc2f-11ea-8566-e7710d592c99"}