Update a User By Email

02/10/2020 | Less than 1 minute to read

Info Note

API TYPE: PUT
End Point: PUT /update
Description: To Update a User By Email

Request (Update a User By Email)

02/10/2020 | 2 minutes to read



{
  "data": [
    {
      "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "firstName": "string",
      "inviteUuid": "string",
      "isActive": true,
      "lastName": "string",
      "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "phoneNo": "string",
      "user": {
        "codesUuid": [
          "string"
        ],
        "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
        "enabled": true,
        "modifiedOn": "2020-02-10T11:11:39.197Z",
        "organizationName": "string",
        "organizationUuid": "string",
        "password": "string",
        "role": {
          "name": "string",
          "uuid": "string"
        },
        "username": "string",
        "uuid": "string"
      },
      "uuid": "string"
    }
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  }
}

Response (Update a User By Email)

02/10/2020 | 2 minutes to read



{
  "data": [
    {
      "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "firstName": "string",
      "inviteUuid": "string",
      "isActive": true,
      "lastName": "string",
      "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
      "phoneNo": "string",
      "user": {
        "codesUuid": [
          "string"
        ],
        "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
        "enabled": true,
        "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZZZZ",
        "organizationName": "string",
        "organizationUuid": "string",
        "password": "string",
        "role": {
          "name": "string",
          "uuid": "string"
        },
        "username": "string",
        "uuid": "string"
      },
      "uuid": "string"
    }
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  },
  "statusCode": "OK"
}

ErrorCode (Update a User By Email)

02/14/2020 | 2 minutes to read

HTTP Status Code Reason
200 We received the request and created Successfully
200 CCP-US-001 | User Not Found!
400 CCP-HTTP-003 | Request method not supported
401 You are not authorized to view the resource
403 Accessing the resource you were trying to reach is forbidden
404 The resource you were trying to reach is not found

©2024 Developer.CSensorNet.com. All rights reserved | Powered by www.clovity.com