Cant set expiration of robot-account using POST /api/v2.0/projects/{project_name_or_id}/robots
#20947
Labels
POST /api/v2.0/projects/{project_name_or_id}/robots
#20947
Expected behavior and actual behavior:
When creating a robot account using the
RobotV1
endpointPOST /api/v2.0/projects/{project_name_or_id}/robots
there is a property in the model sent as body calledexpires_at
, which seems to be there to be able to set when the robot-account is o expire. Whatever thisexpires_at
is set to it will always create a robot which expires at the same time it was created, making this feature kind of unusable.Example:
Gives the response:
And fetching the account above to get the expiration:
Steps to reproduce the problem:
POST /api/v2.0/projects/{project_name_or_id}/robots
withexpires_at
setGet /api/v2.0/projects/{project_name_or_id}/robots
Versions:
Please specify the versions of following systems.
The text was updated successfully, but these errors were encountered: