POST api/Challenges/AllowDisallowChallengeNotification

Request Information

URI Parameters

None.

Body Parameters

ChallengeNotificationSet
NameDescriptionTypeAdditional information
accountId

integer

None.

ChallengeNotifications

Collection of ChallengeNotificationItem

None.

Request Formats

application/json, text/json

Sample:
{
  "accountId": 1,
  "ChallengeNotifications": [
    {
      "challengeId": 1,
      "allow": true
    },
    {
      "challengeId": 1,
      "allow": true
    }
  ]
}

text/plain, application/octet-stream

Sample:
{"accountId":1,"ChallengeNotifications":[{"challengeId":1,"allow":true},{"challengeId":1,"allow":true}]}

application/xml, text/xml

Sample:
<ChallengeNotificationSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Services.Challenges">
  <ChallengeNotifications>
    <ChallengeNotificationItem>
      <allow>true</allow>
      <challengeId>1</challengeId>
    </ChallengeNotificationItem>
    <ChallengeNotificationItem>
      <allow>true</allow>
      <challengeId>1</challengeId>
    </ChallengeNotificationItem>
  </ChallengeNotifications>
  <accountId>1</accountId>
</ChallengeNotificationSet>

multipart/form-data, application/form-data

Sample:
<ChallengeNotificationSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RashakaApi.Services.Challenges"><ChallengeNotifications><ChallengeNotificationItem><allow>true</allow><challengeId>1</challengeId></ChallengeNotificationItem><ChallengeNotificationItem><allow>true</allow><challengeId>1</challengeId></ChallengeNotificationItem></ChallengeNotifications><accountId>1</accountId></ChallengeNotificationSet>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/plain, application/octet-stream, application/xml, text/xml, multipart/form-data, application/form-data

Sample:

Sample not available.