The /set create JMAP method for PublicAsset takes following fields as request:
blobId : Id the blobId it refers to in the upload bucket
identityIds: Id[] the identities this asset is attached to. Can be null. If omitted, considered as null
The blobId needs to refer to a blob that has been previously uploaded in the upload bucket via the jmap upload route. We need to check that the blob exists, need to copy the content into the bucket for public assets and validate that the content is an image.
The /set create JMAP method for PublicAsset takes following fields as request:
Id
the blobId it refers to in the upload bucketId[]
the identities this asset is attached to. Can be null. If omitted, considered as nullThe blobId needs to refer to a blob that has been previously uploaded in the upload bucket via the jmap upload route. We need to check that the blob exists, need to copy the content into the bucket for public assets and validate that the content is an image.
Request:
Response:
DoD: integration tests