Version 1.0
Connector Overview: This page documents all 4 actions for the Sanityioconnector v1.0.
General (4)
POST Mutation
/{apiVersion}/data/mutate/{dataset}
Mutation
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The version of the Sanity API to use, typically a date string like '2021-06-07'. |
|
|
The name of the Sanity dataset to mutate. |
|
|
The response format expected from the API (e.g. application/json). |
GET Query
/{apiVersion}/data/query/{dataset}
Query
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The version of the Sanity API to use, typically a date string. |
|
|
The name of the Sanity dataset to query. |
|
|
The GROQ query string to execute. |
|
|
The query perspective, such as 'raw' or 'published', which controls which document versions are included. |
|
|
The response format expected from the API (e.g. application/json). |
POST Upload a File Asset
/{apiVersion}}/assets/files/{dataset}
Upload a File Asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The version of the Sanity API to use. |
|
|
The name of the Sanity dataset to upload the file to. |
|
|
The response format expected from the API (e.g. application/json). |
POST Upload an Image Asset
/{apiVersion}}/assets/images/{dataset}
Upload an Image Asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
Additional query string name/value pairs to append to the request URL. |
|
|
The version of the Sanity API to use. |
|
|
The name of the Sanity dataset to upload the image to. |
|
|
The response format expected from the API (e.g. application/json). |