Resources

Set feature state for the specified resource

Changed on

Set feature state for the specified resource.

post/resources/{id}/feature

Request

Request body multipart/form-data

titlestring

A custom title, if desired.

Note Conditionally returned

snippetstring

A custom snippet, if desired.

Note Conditionally returned

imagestring binary

A custom image, if desired.

Note Conditionally returned

datestring

A custom feature date, if desired.

Note Conditionally returned

unfeature_daysinteger

A custom number of days after which to unfeature the content, if desired.

Note Conditionally returned

always_visibleboolean

Whether or not the feature should be visible even when the visitor may not view the content.

Note Conditionally returned

Response

OK

successboolean

Changes

    • breaking

      removed the media type application/json from the request body

    • breaking

      removed the media type application/x-www-form-urlencoded from the request body

    • breaking

      the response's property type changed from string to boolean for status

    • warning

      deleted the path request parameter id

    • info

      api operation id post_resources_id_feature removed and replaced with postResourcesIdFeature

    • info

      the endpoint scheme security XF-Api-Key was added to the API

    • info

      the endpoint scheme security XF-OAuth2 was added to the API

    • info

      added the new optional header request parameter XF-Api-User to all path's operations

    • info

      added the new optional query request parameter api_bypass_permissions to all path's operations

    • info

      added the media type multipart/form-data to the request body

    • info

      api tag Resources added

    • info

      api tag resources removed