Edit User

  • Path:
/user/edit
  • Type:
POST

Schemas

Request

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    },
    "user": {
      "properties": {
        "address": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "lastname": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "password": {
          "type": "string",
          "minLenght": 32,
          "maxLength": 32
        },
        "description": {
          "type": "string"
        },
        "skils": {
          "type": "array",
          "items": {
            "type": "number",
            "multipleOf": 1
          }
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  },
  "required": [
    "token",
    "user"
  ],
  "additionalProperties": false
}

Response

{
  "type": "object",
  "properties": {
    "status": {
      "properties": {
        "code": {
          "description": "The status code, check the Status Code Enums",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "additionalProperties": false,
      "type": "object"
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}

Rules

  • Request must match https://trello.com/c/WHvxeb4r
  • Service must edit the user linked to the device that holds the given token
  • If no device is found with the given token a status code invalid_token should be returned
  • If no user is linked to the device with the given token, a status code unlinked_token should be returned
  • Response must match https://trello.com/c/QnqDHhTv