younifyd
Menu

Assign User

Assign User

POST/management/v1/projects/{projectId}/users

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Assign User action (under Management).
  3. Fill in the fields below, then reference the result from later steps as {{assignUser.response.data}}.

Request

Path parameters

projectIdstringrequired

Provide the unique identifier of the project.

Request body

Enter the body as JSON in the step's Body field.

idstring

The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. **Required** with the `role` string. Do **not** use with the `login` string.

loginstring

The login data of the user who will be assigned to the project. **Required** with the `role` string. Do **not** use with the `id` string.

rolestring

The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, or an ID of a custom role.

json
{
  "id": "string",
  "login": "string",
  "role": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{assignUser.response.data.<field>}}.

Need more? See the Voucherify guide for connection setup and behaviour shared by every action.

Assign User — Voucherify — Documentation