diggama 2.0 Help

Create resources

There are two ways to create resources using the Resources API :

  • using the standard REST API, by submitting an application/json request to the endpoint. This is best if you want to programmatically create resources using a third-party tool or submit form using Javascript.

  • by submitting an HTML form to the same endpoint, which will require no additional integration from your static HTML website.

POST method/resources/{blueprint}

Request parameters

curl \ https://api.diggama.com/v1/resources/pages \ --header "Authorization: Bearer (your token)" \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ --request POST \ --data '{"title": "Example page"}'
<form action="https://api.diggama.com/v1/resources/pages" method="POST"> <input type="hidden" name="_redirect" value="https://example.com/success"/> <input type="hidden" name="_token" value="(your token)"/> <input type="text" name="title" value="Example page"/> <button type="submit">Create resource</button> </form>

Responses

Last modified: 13 February 2025