Issue a signed attachment capability after reauthorizing one exact field destination.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/markdown/scope/issue"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"ProviderKey\": \"example\", \"DefinitionId\": \"example\", \"TableId\": \"example\", \"FieldId\": \"example\", \"ChildRowId\": \"example\", \"DestinationModuleKey\": \"example\", \"DestinationResourceKind\": \"example\", \"DestinationContextResourceId\": \"example\", \"DestinationResourceObjectId\": \"example\", \"DestinationCreateNonce\": \"example\", \"OperationKind\": 0, \"ProviderContextJson\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/markdown/scope/issue';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ProviderKey":"example","DefinitionId":"example","TableId":"example","FieldId":"example","ChildRowId":"example","DestinationModuleKey":"example","DestinationResourceKind":"example","DestinationContextResourceId":"example","DestinationResourceObjectId":"example","DestinationCreateNonce":"example","OperationKind":0,"ProviderContextJson":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/markdown/scope/issue \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ProviderKey": "example", "DefinitionId": "example", "TableId": "example", "FieldId": "example", "ChildRowId": "example", "DestinationModuleKey": "example", "DestinationResourceKind": "example", "DestinationContextResourceId": "example", "DestinationResourceObjectId": "example", "DestinationCreateNonce": "example", "OperationKind": 0, "ProviderContextJson": "example" }'The scope token travels in the X-Moltaro-Markdown-Scope header of a draft upload, so no scope is issued whose
header line (name, ": ", token and line end) would exceed 7,168 bytes. A refusal answers 404
markdown.inline.unavailable, except a core.entity Create scope whose ProviderContextJson (the
parent context of a new child) makes that header too large: it answers 400
moltaro.ui.form.parentContext.tooLarge at ProviderContextJson, before any right is decided, with
Metadata.Maximum``7168 and Metadata.Length, the header line’s bytes. A context whose own
UTF-8 bytes already overfill that line is refused before any token is built; its Length is then the line
the context alone would make, a lower bound of the token’s line.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Coordinates used by a server host to issue one Markdown attachment capability.
object
Coordinates used by a server host to issue one Markdown attachment capability.
object
Coordinates used by a server host to issue one Markdown attachment capability.
object
Responses
Section titled “Responses”OK
object
Server-derived, signed Markdown attachment capability for one field and destination.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Server-derived, signed Markdown attachment capability for one field and destination.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Server-derived, signed Markdown attachment capability for one field and destination.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}