Stewardship Actions
Assign a steward to a stewardship
Assigns a user as a steward with the given role. If the user is already an active steward, the role is updated (soft-delete + re-insert). Returns the unchanged stewardship record and the full active stewards list after the operation.
post/stewardships/{id}/assign
Path parameters
idinteger required
Stewardship ID.
Request body
Example request
{
"steward": {
"userId": "abc123",
"username": "joanagmaia",
"displayName": "Joana Maia"
},
"actor": {
"userId": "auth0|abc123",
"username": "gaspergrom",
"displayName": "Gašper Grom",
"avatarUrl": "https://avatars.githubusercontent.com/u/12345"
}
}Response
Steward assigned.
Example response
{
"stewardship": {
"id": "42",
"packageId": "1234",
"version": 1,
"statusNote": "Contacted maintainer, no response after 30 days."
},
"stewards": [
{
"id": "7",
"stewardshipId": "42",
"userId": "abc123",
"username": "joanagmaia",
"displayName": "Joana Maia",
"assignedBy": "xyz789"
}
]
}Changes
Changed in 2 of the 3 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲