The "Create user for organization" endpoint allows you to create a new user within an organization using the PandaVideo API. By making a POST request to the specified URL (https://api-v2-staging.pandavideo.com/users
), you can create a user by providing the necessary information in the request body.
In the request body, you can include the following parameters:
-
email (string): The email address of the user.
-
role_id (string): The role ID assigned to the user.
-
phone (string): The phone number of the user.
Additionally, you need to provide the necessary authentication in the headers using the "Authorization" field with the value "Token API_KEY". The "content-type" header should be set to "application/json".
Responses
200
: Success. The user is created successfully.400
: Bad request. Check the provided parameters.401
: Unauthorized. Authentication failed or not provided.500
: Internal server error. Please try again later.
By utilizing the "Create user for organization" endpoint, you can programmatically create new users within your PandaVideo organization.
Recipes
The Recipes section provides a collection of code examples and sample implementations to help you understand and use the API effectively. Each recipe includes commented code that explains the purpose and functionality of each line. You can refer to these recipes as a guide to implement specific features or interact with the API endpoints.