@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api SCIM Provisioning Overview
@base https://api.frontegg.com/directory
@version 1.0
@auth Bearer bearer
@endpoints 5
@toc resources(5)

@endpoint GET /resources/v1/configurations/scim2
@optional {tenantId: str, source: str, connectionName: str, id: str}
@returns(200)

@endpoint POST /resources/v1/configurations/scim2
@required {source: str(frontegg/okta/azure-ad/other)}
@optional {frontegg-tenant-id: str, connectionName: str, syncToUserManagement: bool}
@returns(201) {id: str, connectionName: str, token: str}

@endpoint GET /resources/v1/configurations/scim2/{id}
@required {id: str}
@optional {frontegg-tenant-id: str}
@returns(200) {id: str, tenantId: str, connectionName: str, source: str, syncToUserManagement: bool, lastSync: str(date-time)?, createdAt: str(date-time)}

@endpoint PATCH /resources/v1/configurations/scim2/{id}
@required {id: str, syncToUserManagement: bool}
@optional {frontegg-tenant-id: str}
@returns(204)

@endpoint DELETE /resources/v1/configurations/scim2/{id}
@required {id: str}
@optional {frontegg-tenant-id: str}
@returns(204)

@end
