Add usages for one or more tenants, users and applications to UTS for storage and processing.

POST {{baseUrl}}/usagesJobs

This method can be used by operators and applications to create a job that adds application specific usages (e.g. number of created report pages, CPU times per user, assets configured, etc.) to the UTS. - Maximum of 200 usages can be added by one job. Larger payloads are immediately and completely rejected. - Use this endpoint to add USAGES of MULTIPLE TENANTS and USERS to UTS. - The returned id can be used later to query the status of the UTS process for the job and added usages. - In case the usages need to be billed, a rule must be created in UTS.

In case the userId is not provided in the payload, the tenantId is used as userId, also userType is then tenant.

Request Body

{"users"=>[{"tenantId"=>"<string>", "resources"=>[{"application"=>"<string>", "resource"=>"<string>", "usages"=>[{"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "alias"=>"<string>"}, {"application"=>"<string>", "resource"=>"<string>", "usages"=>[{"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "alias"=>"<string>"}], "userId"=>"<string>", "userType"=>"tenant"}, {"tenantId"=>"<string>", "resources"=>[{"application"=>"<string>", "resource"=>"<string>", "usages"=>[{"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "alias"=>"<string>"}, {"application"=>"<string>", "resource"=>"<string>", "usages"=>[{"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "unit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "datetime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "alias"=>"<string>"}], "userId"=>"<string>", "userType"=>"tenant"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring