Create Creds
POST/api/v1/org/:org_id/creds/add
Creates a credential for an organization.
Args:
credential (NewCredential): the name, type, credential and description to be created. The name must be unique within an oganization. The type must be either "google_service_account", "google_impersonated_service_account" or "confluence". The description is optional. Additional info (dict) is optional - additional information to be stored with the credential. org_id (str): the id of the organization db (AsyncSession): The data base to use in the repository org_member (OrgMember): The member to verify if the user is authorized to create a credential
Returns:
OrgCredentials: The credential that was just created
Observations:
If the user is not ADMIN or SUPERADMIN, he is not authorized (Exception: confluence) If the credential type is "confluence", any user role is accepted
Request
Responses
- 201
- 422
Successful Response
Validation Error