Skip to main content

Fetch OpenSPP V2 Studio fields

Authenticates server-side to OpenSPP V2, paginates /api/v2/spp/Studio/fields, and returns combined field metadata.

Request

Method: POST
Path: /api/openspp-fields/v2/fields

Authentication: Not required

Request Body

Content Type: application/json

Schema: See component schemas below

Responses

200 - Studio fields

400 - Missing parameters or URL points at a private/internal range

401 - Authentication failed

502 - Authentication request failed

Examples

cURL

curl -X POST \
-H "Content-Type: application/json" \
http://localhost:3000/api/openspp-fields/v2/fields \
-d '{"example": "data"}'

JavaScript

const response = await fetch('http://localhost:3000/api/openspp-fields/v2/fields', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
// Request data
}),
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.