Source Files

Edit Directory

Required scopes: project.source.file (Read and Write).

patch/projects/{projectId}/directories/{directoryId}

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

directoryIdinteger required

Directory Identifier. Get via List Directories

Request body

op'replace' | 'test' required

Patch operation to perform

path'/branchId' | '/directoryId' | '/name' | '/title' | '/exportPattern' | '/priority' json-pointer required

A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

Response

Directory was successfully updated

Example response

{
  "data": {
    "id": 4,
    "projectId": 2,
    "branchId": 34,
    "name": "main",
    "title": "<Description materials>",
    "exportPattern": "/localization/%locale%/%file_name%",
    "path": "/main",
    "priority": "normal",
    "createdAt": "2019-09-19T14:14:00+00:00",
    "updatedAt": "2019-09-19T14:14:00+00:00"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.