/asset-management/v1/site-partner-users/{sitePartnerUserId}/archiveArchives a site partner user by ID if it exists and if the user is associated with the current network. This will set isArchived field to true.
This action is not enabled by default. You must request additional permissions to perform this action.
sitePartnerUserIdstringrequired
The ID of the site partner user to be archived
Site partner user deleted successfully.
Empty response
/asset-management/v1/site-partner-usersThis endpoint retrieves a list of all Site Partner Users
limitstringThe maximum number of site partner users to return (default 20, maximum 100)
startingAfterstringThe ID of the last site partner user in the previous page of results. Results will start after this site partner user
A list of site partner users
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
]
}
}/asset-management/v1/site-partner-usersThis endpoint creates a new site partner user
This action is not enabled by default. You must request additional permissions to perform this action.
emailstring or nullrequired
If the email is null that means the site partner user has been archived
partnerstringrequired
The ID of the partner associated with the user
firstNamestringThe first name of the site partner user
lastNamestringThe last name of the site partner user
{
"email": "string",
"partner": "string",
"firstName": "string",
"lastName": "string"
}Success
{
"data": {
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}/asset-management/v1/site-partner-users/{sitePartnerUserId}This endpoint updates an existing site partner user by its ID.
This action is not enabled by default. You must request additional permissions to perform this action.
emailstringThe email of the site partner user
firstNamestringThe first name of the site partner user
lastNamestringThe last name of the site partner user
phonestringThe phone number of the site partner user
{
"email": "string",
"firstName": "string",
"lastName": "string",
"phone": "string"
}Success. Returns the updated site partner user.
{
"data": {
"id": "string",
"email": "string",
"network": {
"id": "string"
},
"partner": {
"id": "string"
},
"firstName": "string",
"lastName": "string",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}Was this page helpful?