Skip to main content
POST
/
api
/
v2
/
client-account-configurations
/
{client_account_configuration_id}
/
resources
/
assign
Assign Resources to Client Account Configuration
curl --request POST \
  --url https://api.voiceaiwrapper.app/api/v2/client-account-configurations/{client_account_configuration_id}/resources/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assigned_resources": {
    "assistant": [
      "asst_abc123"
    ],
    "vapi_workflow": [],
    "vapi_squad": [],
    "phone_number": [],
    "phone_number_pool": [],
    "knowledge_base": [],
    "tools_and_functions": [],
    "campaign": [
      "Vm9pY2VDYW1wYWlnbjoxMjM="
    ]
  }
}
'
{
  "status": "success",
  "message": "Resources assigned to client account configuration successfully",
  "data": {
    "asset_group_id": "<string>",
    "assigned_resources": {
      "assistant": [
        "asst_abc123"
      ],
      "vapi_workflow": [],
      "vapi_squad": [],
      "phone_number": [],
      "phone_number_pool": [],
      "knowledge_base": [],
      "tools_and_functions": [],
      "campaign": [
        "Vm9pY2VDYW1wYWlnbjoxMjM="
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

client_account_configuration_id
string
required

Global ID of the client account configuration. Required.

Example:

"Q2xpZW50QXNzZXRHcm91cDoxMjM="

Body

application/json

Resource assignments to apply

assigned_resources
object
required

Map of resource types to lists of global IDs. Required. At least one resource type with a non-empty list must be provided.

Response

Resources assigned to client account configuration successfully. Returns the Client Account Configuration ID and validated resource assignments.

status
string
Example:

"success"

message
string
Example:

"Resources assigned to client account configuration successfully"

data
object