Project Users
Last updated
Last updated
This endpoint makes an HTTP GET request to retrieve a list of user for a project
Method: GET
Endpoint: https://api.creatopy.com/v1/project/users
Query Parameters:
projectId
(integer, required): The projectId in which will search for users
curl --location 'https://api.creatopy.com/v1/project/users' \
--header 'Authorization: Bearer eyJh...'
Upon a successful execution, the response will have a status code of 200 and a JSON content type. The response body will contain the following structure:
JSON
{
"response": [
{
"userId": 111111,
"teamId": 111,
"name": "User Name 1",
"url": null,
"email": "[email protected]",
"profilePicture": null,
"role": "Admin",
"teamRoleId": 1
},
{
"userId": 22222,
"teamId": 111,
"name": "User Name 2",
"url": null,
"email": "[email protected]",
"profilePicture": null,
"role": "Admin",
"teamRoleId": 1
},
]
}
This endpoint allows you to add an user to a project.
Method: POST
Endpoint: https://api.creatopy.com/v1/project/users
Body:
userId
(integer, required): The id of the user.
projectId
(integer, required): The id of the project where we want to add the user
The response of this request can be documented as a JSON schema:
JSON
{
"response":
{
"status": "success"
}
}
This endpoint allows you to remove an user from a project.
Method: DELETE
Endpoint: https://api.creatopy.com/v1/project/users
Body:
userId
(integer, required): The id of the user.
projectId
(integer, required): The id of the project from where we want to remove the user
{
"response":
{
"status": "success"
}
}