Strapi

App · 11 actions

Manage Strapi v5 collection documents, single types and media files.

Actions

ActionWhat it does
Create documentCreate document.
Delete documentDelete document.
Delete fileDelete file.
Delete single typeDelete single type.
Get documentGet document.
Get fileGet file.
Get single typeGet single type.
List documentsList documents.
List filesList files.
Update documentUpdate document.
Update single typeUpdate single type.

Create document

Create document.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
FieldsfieldsobjectRequired
Content fields defined in your Strapi site. Supply names and values using its content-type schema.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Delete document

Delete document.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Document IDdocument_idtextRequired
Document id for this request.
Localelocaletext
Locale for this request.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Delete file

Delete file.

Inputs

IdidtextRequired
Id for this request.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Delete single type

Delete single type.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Localelocaletext
Locale for this request.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get document

Get document.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Document IDdocument_idtextRequired
Document id for this request.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get file

Get file.

Inputs

IdidtextRequired
Id for this request.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get single type

Get single type.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List documents

List documents.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.
Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 100.
Sortsorttext
Sort for this request.
Populatepopulatetext
Populate for this request.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {
    "data": []
  },
  "has_more": false,
  "next_cursor": null
}

List files

List files.

Inputs

None.

Outputs

Value.

datalist
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}

Update document

Update document.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
Document IDdocument_idtextRequired
Document id for this request.
FieldsfieldsobjectRequired
Content fields defined in your Strapi site. Supply names and values using its content-type schema.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Update single type

Update single type.

Inputs

Content typecontent_typetextRequired
API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
FieldsfieldsobjectRequired
Content fields defined in your Strapi site. Supply names and values using its content-type schema.
Localelocaletext
Locale for this request.
Statusstatustext
Status for this request.One of: draft, published.

Outputs

Value.

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Cursor for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

On this page