How to set a managed blob using the REST API

What is the way to create a document and set a managed blob on it using the rest API, on a 10.3 snapshot? I have a custom blob provider, my client layer knows the id of the blob in the remote provider.

0 votes

1 answers

109 views

ANSWER



The value to send for the blob (file:content for example)

{
  "entity-type: "document",
  . . .
  "properties": {
    . . .
    "file:content": {
      "providerId": "THE_PROVIDER_ID",
      "key": "THE_BLOBKEY"
    }
  }

(see JSONManagerBlobDecoder)

Notice: Worked well during a test Nuxeo/Simflofy/Documentum

1 votes



thank you, that is still for the same use case;)
10/23/2018