PATCH/projects/api/v3/skills/{id}.json

Update an existing skill.

Update an existing skill.

Only the name is honoured. Skill assignments and the levels people hold are set through the people endpoints, not here, so this body has no people field and one that names it is rejected.

Path Params

  • Name
    id
    Type
    integer
    required
    Description

Body Params

UpdateRequest contains information of a skill to be updated. A skill create uses Request instead, because a create and an update do not accept the same fields.

    • Name
      skill
      Type
      object
      Description
      SkillUpdate is the set of skill fields an update honours: the name. Assignments are not changed here. Who holds a skill, and at what level, is set through the people endpoints - PUT and POST /skills/{id}/people for a set of people at a level each, and PATCH /skills/{id}/people/{userId} for a single person - so this body has no `people` field and one that names it is rejected. `userIds` is accepted for backwards compatibility and ignored.

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
      Response contains information about a specific skill.
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      403
      Type
      object
      Schema
      Description
      403 Forbidden
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      404
      Description
      404 Not Found No Data
    • Code
      409
      Type
      object
      Schema
      Description
      409 Conflict
      ErrorResponse defines how []Error should be marshaled to JSON.

    Examples

    200 OK

    Response
    {
      "included": {
        "users": {
          "additionalProp": {
            "avatarUrl": "string",
            "canAccessPortfolio": true,
            "canAddProjects": true,
            "canManagePortfolio": true,
            "company": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "companyId": 0,
            "companyRoleId": 0,
            "createdAt": "string",
            "createdBy": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "deleted": true,
            "email": "string",
            "firstName": "string",
            "id": 0,
            "inOwnerCompany": true,
            "isAdmin": true,
            "isClientUser": true,
            "isPlaceholderResource": true,
            "isServiceAccount": true,
            "jobRoles": [
              {
                "id": 0,
                "meta": {},
                "type": "string"
              }
            ],
            "lastLogin": "string",
            "lastName": "string",
            "lengthOfDay": 0,
            "linkedClientPortalCompany": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "linkedClientPortalCompanyId": 0,
            "loginTarget": "string",
            "meta": {},
            "siteOwner": true,
            "skills": [
              {
                "id": 0,
                "meta": {
                  "level": 0
                },
                "type": "string"
              }
            ],
            "teams": [
              {
                "id": 0,
                "meta": {},
                "type": "string"
              }
            ],
            "timezone": "string",
            "title": "string",
            "type": "string",
            "updatedAt": "string",
            "updatedBy": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "userCost": 0,
            "userRate": 0,
            "userRates": {
              "additionalProp": {
                "amount": 0,
                "currency": {
                  "id": 0,
                  "meta": {},
                  "type": "string"
                }
              }
            },
            "workingHour": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "workingHoursId": 0
          }
        }
      },
      "skill": {
        "createdAt": "string",
        "createdByUser": 0,
        "deletedAt": "string",
        "deletedByUser": 0,
        "id": 0,
        "name": "string",
        "peopleCount": 0,
        "updatedAt": "string",
        "updatedByUser": 0,
        "users": [
          {
            "id": 0,
            "meta": {
              "level": 0
            },
            "type": "string"
          }
        ]
      }
    }