Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow changing of an information object's publication status via the REST API #1624

Closed
mcantelon opened this issue Jul 5, 2023 · 0 comments · Fixed by #1626
Closed
Labels
Type: enhancement An improvement to existing functionality.
Milestone

Comments

@mcantelon
Copy link
Member

Currently a REST API user can't change a description's publication status using the information object update endpoint (plugins/arRestApiPlugin/modules/api/actions/informationobjectsUpdateAction.class.php).

We could support these update request conditions to allow publication status to be changed:

  1. "published" isn't set in the payload: no change

  2. "published" is set to true: set to published

  3. "published" is set to false: set to draft

mcantelon added a commit that referenced this issue Jul 5, 2023
Added functionality to the information object update REST API endpoint
to allow an information object's publication status to be changed.
@mcantelon mcantelon added the Type: enhancement An improvement to existing functionality. label Jul 5, 2023
mcantelon added a commit that referenced this issue Jul 5, 2023
Added functionality to the information object update REST API endpoint
to allow an information object's publication status to be changed.
@anvit anvit linked a pull request Jul 10, 2023 that will close this issue
@anvit anvit added this to the 2.8.0 milestone Jul 10, 2023
mcantelon added a commit that referenced this issue Jul 11, 2023
Added functionality to the information object update REST API endpoint
to allow an information object's publication status to be changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement An improvement to existing functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants