API to update Service Accounts
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Background
We have Update Service Account in UI (#393234 - closed) to add support for updating a service account in the UI. This issue is for the same support in the API.
Acceptance Criteria
- An API endpoint is created to update Service Account details.
- The API allows updating the following Service Account attributes:
- Name
- Description
- Email address
- Secondary email address
- PAT
- Expiration Date
- The API requires appropriate authentication and authorization to perform updates.
- Only users with the necessary permissions can successfully use the API to update Service Accounts.
- The API returns appropriate success or error responses with relevant HTTP status codes.
- Updates to Service Accounts via the API are properly logged for audit purposes.
- The API handles invalid input gracefully, providing clear error messages.
- Updates made through the API are immediately reflected in the GitLab UI.
- The API documentation is updated to include this new endpoint and its usage.
- Rate limiting is applied to prevent abuse of the API.
- The API supports both JSON and URL-encoded request formats.
Edited by 🤖 GitLab Bot 🤖