Get a file property
/rest/ofscCore/v1/activities/{activityId}/{propertyLabel}
Important: This information only applies to Oracle Field Service environments. You can verify whether you've Oracle Field Service or Oracle Fusion Field Service, by signing in and checking on the About page.
This method gets the specified file property for the specified activity.
Request
-
activityId(required): integer
The unique identifier of the activity in Oracle Field Service.
-
propertyLabel(required): string
The label of a custom property. This custom property must be of type 'file'.
-
Accept: string
The request must contain the Accept header to retrieve the file contents. The header must have either of the following:
- The actual content type (for example, application/pdf for pdf documents).
- The special value 'application/octet-stream', when you don't know the content type.
If the request doesn't have the Accept header, the response contains only the file metadata in JSON format.
Response
- application/octet-stream
200 Response
string(binary)FileDefault Response
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to get a file property of an activity by submitting a GET request on the REST resource using cURL.
curl -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' -H 'Accept: application/octet-stream' 'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/4225269/uploadedPic' > filename.jpeg
Example of Response
In this example, response is written directly to file.