Skip to main content
POST
/
index.php
/
api
/
dakota
cURL
curl --request POST \
  --url https://marketplace-as-a-service.herokuapp.com/index.php/api/dakota \
  --header 'Content-Type: text/plain' \
  --header 'Oauth-Token: <api-key>' \
  --data '<JSON example>'

How to Use

  1. Copy any of the JSON examples below.
  2. Go to the API playground by clicking on the “Try it” button.
  3. Paste the JSON into the request body field.
  4. Click “Send” button to execute the request.

Examples

Count Updates Records

{
  "module": "updates",
  "count_only": "1"
}

List All Updates

{
  "module": "updates",
  "filters": {
    "fields": ["name", "createddate"],
    "max_num": "10"
  }
}

Filter By Updates Name

{
  "module": "updates",
  "filters": {
    "filter": [
      {
        "$and": [
          {
            "name": {
              "$contains": "Adams"
            }
          }
        ]
      }
    ]
  }
}

Filter By CreatedDate

{
  "module": "updates",
  "filters": {
    "filter": [
      {
        "createddate": {
          "$dateRange": "last_30_days"
        }
      }
    ],
    "max_num": "10"
  }
}

Filter By Account Equals

{
  "module": "updates",
  "filters": {
    "filter": [
      {
        "account__c": {
          "$equals": "0017600000TLTRkAAP"
        }
      }
    ]
  }
}

Filter By Posted Date Greater Than and Less Than

{
  "module": "updates",
  "filters": {
    "filter": [
      {
        "$and": [
          {
            "posted_date__c": {
              "$gt": "2023-02-14"
            }
          },
          {
            "posted_date__c": {
              "$lt": "2023-04-14"
            }
          }
        ]
      }
    ]
  }
}

Filter By Meeting Date Equals

{
  "module": "updates",
  "filters": {
    "filter": [
      {
        "$and": [
          {
            "meeting_date__c": {
              "$equals": "2023-07-28"
            }
          }
        ]
      }
    ]
  }
}

Authorizations

Oauth-Token
string
header
required

Get the OAuth token by calling the /oauth2 authentication API. Use the access_token from the response to authorize your API requests.

Body

text/plain

Copy any of the JSON examples and paste it into the request body field.