/role-store/api/v1/sourcesAsk AIpost https://example.com/role-store/api/v1/sourcesCreate a new source definition. Id, author, created & updated are automatically populated by the server.Body ParamsenabledbooleantruefalsettlintegerHow often the source data should be refreshed, time in secondsnamestringA name describing the sourcecommentstringA comment describing the objecttagsarray of stringsArray of tag stringstagsADD stringusername_patternarray of stringsArray of wildcarded username patters which should be authenticated against this sourceusername_patternADD stringexternal_user_mappingarray of objectsMapping external users to source users via id+usernameexternal_user_mappingADD objectconnectionobjectSource connection definition - depending on the type, either aws_iam_source, ad source or ldap_source is definedconnection objectHeadersAuthorizationstringrequiredDefaults to Bearer a-proper-token-goes-hereOAuth2 tokenResponses 201Source Successfully created 400Bad request 401Unauthorized request, OAuth2 authorization missing or invalid 403Unauthorized request, OAuth2 authorization OK but scope insufficient 404Resource not found 500Internal server errorUpdated over 4 years ago