Sha256: 80aad98fc1dc439576774d08abdaa524bfc93c62884db49012db0927ccdba894
Contents?: true
Size: 1.76 KB
Versions: 10
Compression:
Stored size: 1.76 KB
Contents
# UserRequest ## Example UserRequest Object ``` { "id": 1, "name": "John Doe", "email": "example", "details": "Changed Departments", "company": "Acme Inc." } ``` * `id` (int64): ID * `name` (string): User's full name * `email` (email): User email address * `details` (string): Details of the user's request * `company` (string): User's company name --- ## List User Requests ``` Files::UserRequest.list( per_page: 1, page: 1 ) ``` ### Parameters * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination. * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended). * `action` (string): * `page` (int64): --- ## Show User Request ``` Files::UserRequest.find(id) ``` ### Parameters * `id` (int64): Required - User Request ID. --- ## Create User Request ``` Files::UserRequest.create( name: "name", email: "email", details: "details", company: "Acme Inc." ) ``` ### Parameters * `name` (string): Required - Name of user requested * `email` (string): Required - Email of user requested * `details` (string): Required - Details of the user request * `company` (string): Company of the user requested --- ## Delete User Request ``` Files::UserRequest.delete(id) ``` ### Parameters * `id` (int64): Required - User Request ID. --- ## Delete User Request ``` user_request = Files::UserRequest.find(id) user_request.delete ``` ### Parameters * `id` (int64): Required - User Request ID.
Version data entries
10 entries across 10 versions & 1 rubygems