---
title: "POST /resource/{resourceId}"
method: POST
path: "/resource/{resourceId}"
tags: ["postResource"]
---

# POST /resource/{resourceId}

`POST /resource/{resourceId}`

Creates an upload URI for replacing the content of an existing file resource

## Path parameters

- `resourceId` string, required

## Query parameters

- `option` 'DEFAULT' | 'METADATA' | 'MIGRATIONMETADATA' | 'ADDITIONALMETADATA' | 'WIN32PROPERTIES' | 'PARENTS' | 'PROPERTIES' | 'DOWNLOAD' | 'INTERNALDOWNLOAD' | 'UPLOAD' | 'INTERNALUPLOAD' | 'OPEN' | 'SHARES' | 'THUMBNAILS' | 'DISPLAYRESOURCE' | 'SYNC' | 'INVALID' | 'FULLPATH' | 'TAGS'
- `lockToken` string

## Headers

- `cookie` string
- `If-Match` string

## Request body

- object
  - `uploadType` 'SIMPLE' | 'SIMPLECHUNK' | 'CHUNKED' | 'URI' | 'FORM'
  - `patch` ResourceUpdateModel
    - `update` object
      - `ui:fs` Uifs
        - `creationMillis` integer
        - `childrenSize` integer
        - `metaETag` string
        - `lastResourceOperation` string
        - `resourceURI` string
        - `version` integer
        - `lastResourceOperationClient` string
        - `size` integer
        - `children` Children[]
          - `ui:fs` Uifs — recursive
          - `ui:win32` UiWin32
            - `readOnly` boolean
            - `hidden` boolean
            - `system` boolean
            - `creationMillis` integer
            - `lastModificationMillis` integer
            - `lastAccessMillis` integer
          - `ui:share` UiShareModel
            - `share` ShareModel[]
              - …
        - `name` string
        - `modificationMillis` integer
        - `childrenCount` integer
        - `resourceType` string
        - `cdash64` string
        - `referenceId` string
        - `storeId` string
        - `guestModificationMillis` integer
        - `originalParents` Uifs[]
        - `contentETag` string
        - `parents` Uifs[]
        - `UiMetaResource` object
          - `ui:meta:resource` UiMetaResourceModel
            - `mimetype` string
      - `ui:win32` UiWin32
        - `readOnly` boolean
        - `hidden` boolean
        - `system` boolean
        - `creationMillis` integer
        - `lastModificationMillis` integer
        - `lastAccessMillis` integer
  - `size` integer

## Response `200`

success

## Other responses

- `400` — BAD REQUEST, Wrong resource type
- `412` — PRECONDITION FAILED, non-matching Etag of 'If-Match' Header
- `423` — LOCKED, Resource is locked

---

[API](https://skmtc.net/iterate-ch/apis/restfs.md) · [All operations](https://skmtc.net/iterate-ch/apis/restfs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/iterate-ch/restfs/revisions/517e17452ca3/schema)
