Export Details for Multiple Partner Organizations
post
/rest/v19/companies/actions/bulkExport
This endpoint exports details for multiple partner organizations. This operation triggers a task to return a list of partner organizations as a zip file.
Request
Supported Media Types
- application/json
Root Schema : companies-exportRequest
Type:
Show Source
object-
criteria:
object Criteria
Title:
CriteriaCriteria to Filter Users -
fileFormat:
string
Title:
File FormatAllowed Values:[ "CSV", "XML" ]File download format. -
scheduledTime:
string
Title:
Scheduled TimeTime to schedule the task.
Nested Schema : Criteria
Type:
objectTitle:
CriteriaCriteria to Filter Users
Show Source
-
q:
string
Title:
Filter StringFilter String
Response
Supported Media Types
- application/json
Default Response
Companies Export Task details.
Root Schema : Task details
Type:
objectTitle:
Task detailsTask details
Show Source
-
links:
array Links
Title:
LinksLinks to the related objects. -
taskId:
integer
Title:
Task IdThe status log task Id.
Nested Schema : Links
Type:
arrayTitle:
LinksLinks to the related objects.
Show Source
-
Array of:
object Reference Links
Title:
Reference LinksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : Reference Links
Type:
objectTitle:
Reference LinksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
hrefURL to the related object -
rel:
string
Title:
LinkLink relationship to the current object
Examples
The following example shows how to export details for multiple partner organizations by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/companies/actions/bulkExport
Request Body Sample
{
"fileFormat": "csv",
"scheduledTime": "2023-12-11T05:50:00Z",
"criteria": {
"q": "{'login' :{'$like':'%po%'}}"
}
}
Response Body Sample
{
"taskId": 3022163950,
"links": [{
"rel": "related",
"href": "https://sitename.oracle.com/rest/v19/tasks/3022163950"
}
]
}