Accept a share
POST/api/v1/shares/:share_id/accept
Records the grantee project's acceptance, which is what makes the share grant anything. Idempotent. A project that revoked its own acceptance may accept again; one whose acceptance the publisher revoked answers 403 SHARE_REVOKED until the publisher deletes that acceptance. A suspended share can be accepted and grants nothing until resumed.
Request
Responses
- 200
- 400
- 401
- 403
- 404
The project's acceptance
No accepting project, or the publisher accepting its own share
Unauthorized
Forbidden, or SHARE_REVOKED: the share, or this project's acceptance, was revoked by the publisher
Share not found, or not addressed to the project