Skip to main content

Project User

GET Users#

Get all users in project.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/users
HeadersAuthorization
ParametersprojectId, version
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)v1The identifier of project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
projectIdYesstring($uuid)v1The identifier of project
PageIndexNointeger($int32)0
PageSizeNointeger($int32)10
SearchNostring"string"

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "email": "string",      "name": "string",      "lastname": "string",      "role": "string"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of user project
emailstring"string"Returns the email of user that created project
namestring"string"Returns the name of user that created project
lastnamestring"string"Returns the lastname of user that created project
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the default identifier of organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the default identifier of project
rolestring"string"Returns the role of user project
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

POST ProjectUser#

Add or invite user to projects.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/users
HeadersAuthorization
ParametersorganizationId, version
Body{ email, roleId }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
projectsYesstring($uuid)v1Directs to the projects
{projectId}Yesstringv1The identifier for the project
usersYesstringv1Directs to the users

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
projectIdYesstring($uuid)v1The identifier for the project

Request body#

{  "email": "string",  "roleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
emailYesstring"string"Sends the email of user
roleIdYesstring"string"Sends the role identifier of the user for the following project

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET ProjectUser#

Get project user details

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/users/{userId}
HeadersAuthorization
ParametersprojectId, version, userId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)v1The identifier for the project
{userId}Yesstring($uuid)v1The identifier for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
userIdYesstring($uuid)v1The identifier for the user
projectIdYesstring($uuid)v1The identifier for the project

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT ProjectUser#

Update user, change user role in project

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/users
HeadersAuthorization
ParametersorganizationId, version
Body{ email, roleId }

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
projectsYesstring($uuid)v1Directs to the projects
{projectId}Yesstringv1The identifier for the project
usersYesstringv1Directs to the users

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
projectIdYesstring($uuid)v1The identifier for the project

Request body#

{  "email": "string",  "roleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
emailYesstring"string"Sends the email of user
roleIdYesstring"string"Sends the role identifier of the user for the following project

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

DELETE ProjectUser#

Remove user from project

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/projects/{projectId}/users/{userId}
HeadersAuthorization
ParametersprojectId, version, userId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)v1The identifier for the project
{userId}Yesstring($uuid)v1The identifier for the user

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstringv1Shows the version of API
userIdYesstring($uuid)v1The identifier for the user
projectIdYesstring($uuid)v1The identifier for the project

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "email": "string",    "name": "string",    "lastname": "string",    "defaultOrganizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "defaultProjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "role": {      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",      "name": "string",      "description": "string",      "isDefault": true,      "permissionCount": 0    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns an object of project's user
idstring"string"Returns the identifier of role
emailstring"string"Returns the email of the user
namestring"string"Returns the name of user
lastnamestring"string"Returns lastname of user
defaultOrganizationIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of the organization
defaultProjectIdstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of project
rolesarray [object]Returns an object of project's user role
idstring"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the identifier of role
namestring"string"Returns the name of user role
descriptionstring"string"Returns the description of user
isDefaultbooltrue
permissionCountinteger($int32)0
typestring"string"Returns the type of role
titlestring"string"Returns the title of role
resultInfoarray [object]Returns an object of project's user
totalCountinteger($int32)0How many records of project's user entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found