Update Account Manager data

PUT/account-managers/{id}

Update Account Manager data.

Privileges:

  • biz-core.manage

Audit event:

  • biz.core.v2.partner.account.manager.update

Errors:

  • BIZ_CORE:ACCOUNT_MANAGER_NOT_FOUND - Account manager not found.
  • BIZ_CORE:ACCOUNT_MANAGER_MUST_BE_UNIQUE - Account manager Name and Email Address must be unique.
  • BIZ_CORE:ACCOUNT_MANAGER_NAME_MUST_BE_UNIQUE - Account manager Name must be unique.
  • BIZ_CORE:ACCOUNT_MANAGER_EMAIL_MUST_BE_UNIQUE - Account manager Email Address must be unique.

Validation errors:

  • ACCOUNT_MANAGER_NAME_IS_EMPTY - Name is empty
  • ACCOUNT_MANAGER_NAME_IS_TO_LONG - Name cannot be longer than 100 characters
  • ACCOUNT_MANAGER_NAME_CONTAINS_INVALID_CHARACTERS - Name contains invalid characters
  • ACCOUNT_MANAGER_STATUS_NOT_SUPPORTED - Given status is not supported.
  • BIZ_CORE:ACCOUNT_MANAGER_E_MAIL_OUT_OF_LIMIT - Email of the Account Manager cannot be longer than 255 characters.
  • BIZ_CORE:ACCOUNT_MANAGER_E_MAIL_NOT_VALID - Email of the Account Manager is not valid.
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

idintegerrequired

id.

Body

application/json
accountMgrProductsobject[]
Show child attributes
productIdintegerrequired
emailstring
namestring
statusstring
Possible values: active, inactive, deleted

Request example

cURL · cURL
curl -L -X PUT "https://api-cpaas.sms.es/biz-core/v2/account-managers/{id}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "accountMgrProducts": [
    {
      "productId": 0
    }
  ],
  "email": "string",
  "name": "string",
  "status": "active"
}'

Responses

Account Manager updated successfully

application/json
accountMgrProductobject[]
Show child attributes
accountMgrIdinteger
idinteger
isOurProductstring
Possible values: yes, no
isSupplierProductstring
Possible values: yes, no
productCodeNamestring
productIdinteger
productNamestring
productTypeinteger
productTypeCodeNamestring
productTypeNamestring
statusstring
Possible values: active, inactive, deleted
statusDtstring (date-time)
emailstring
idinteger
instanceIdinteger
namestring
statusstring
Possible values: active, inactive, deleted
statusDtstring (date-time)
Example response
{
  "accountMgrProduct": [
    {
      "accountMgrId": 0,
      "id": 0,
      "isOurProduct": "yes",
      "isSupplierProduct": "yes",
      "productCodeName": "string",
      "productId": 0,
      "productName": "string",
      "productType": 0,
      "productTypeCodeName": "string",
      "productTypeName": "string",
      "status": "active",
      "statusDt": "2026-01-01T12:00:00Z"
    }
  ],
  "email": "string",
  "id": 0,
  "instanceId": 0,
  "name": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}