Invite
This contains APIs related to Invite as defined in Harness
Resend the invite email
Invite id
Account Identifier for the Entity.
This is the view of the Invite entity defined in Harness
Identifier of the Invite.
Name of the Invite.
Email Id associated with the user to be invited.
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
List of the userGroups in the invite.
Specifies the invite type.
Specifies whether or not the invite is approved. By default this value is set to false.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Invite
PUT /gateway/ng/api/invites/{inviteId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 358
{
"id": "text",
"name": "text",
"email": "text",
"accountIdentifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"roleBindings": [
{
"roleIdentifier": "text",
"roleName": "text",
"roleScopeLevel": "text",
"resourceGroupIdentifier": "text",
"resourceGroupName": "text",
"managedRole": true
}
],
"userGroups": [
"text"
],
"inviteType": "USER_INITIATED_INVITE",
"approved": true
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Delete an Invite by Identifier
Invite Id
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns either empty value of Deleted Invite
DELETE /gateway/ng/api/invites/{inviteId}?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Gets an Invite by either Invite Id or JwtToken
Account Identifier for the Entity.
Invitation Id
JWT Token
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the Invite having either InviteId or JwtToken as specified in request
GET /gateway/ng/api/invites/invite?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}List all the Invites for a Project or Organization
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Internal server error
Paginated list of Invites
GET /gateway/ng/api/invites?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Accept: */*
{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}List of all the pending users in a scope
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Search term
Page Index of the results to fetch.Default Value: 0
0Results per page(max 100)Default Value: 50
50Page Token of the next results to fetch.Default Value: ''
Bad Request
This is Failure entity as defied in Harness
Internal server error
Paginated list of Pending Invites
POST /gateway/ng/api/invites/aggregate?accountIdentifier=text HTTP/1.1
Host: ng-manager-7b6bb5bdbc-5jxjn
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"resourceGroupIdentifiers": [
"text"
],
"roleIdentifiers": [
"text"
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?