POST api/PetOffer/SubmitNewItemForSale

Request Information

URI Parameters

None.

Body Parameters

customeObject
NameDescriptionTypeAdditional information
petOfferInc

PetOffer

None.

PetCategoryAttributeValueList

Collection of PetCategoryAttributeValue

None.

Request Formats

application/json, text/json

Sample:
{
  "petOfferInc": {
    "PetOfferID": "717a2b37-a8c5-4775-935e-92c0d17b5fdb",
    "PetOfferTitle": "sample string 2",
    "Price": 1.1,
    "AccountID": "3fc5bc76-76a7-4c0f-990b-9d2424115231",
    "MobileNumber": "sample string 3",
    "PetCategoryID": 1,
    "ExpiryDate": "2020-10-01T14:32:02.3694437+02:00",
    "PetOfferStatusID": 1,
    "DiscountSerial": "sample string 4",
    "RemainingDiscountCount": 1,
    "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
    "IsPopular": 1,
    "Address": "sample string 5",
    "Description": "sample string 6",
    "Comment": "sample string 7",
    "Discount": "sample string 8",
    "PetCategory": {
      "PetCategoryID": 1,
      "Name": "sample string 2",
      "ParentID": 1,
      "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
      "CreatedByID": "b935e346-5de7-4f91-8831-058a56fcfc92",
      "IsActive": true,
      "HasChild": true,
      "ImageURL": "sample string 3"
    }
  },
  "PetCategoryAttributeValueList": [
    {
      "PetCategoryAttributeValueID": 1,
      "PetCategoryAttributeID": 1,
      "Value": "sample string 2",
      "PetOfferID": "983035ba-0f0b-4620-a852-89177ec51eab",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
          "CreatedByID": "b935e346-5de7-4f91-8831-058a56fcfc92",
          "IsActive": true,
          "HasChild": true,
          "ImageURL": "sample string 3"
        },
        "PetCategoryAttributeValues": [],
        "PickListValues": [
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          },
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          }
        ]
      }
    },
    {
      "PetCategoryAttributeValueID": 1,
      "PetCategoryAttributeID": 1,
      "Value": "sample string 2",
      "PetOfferID": "983035ba-0f0b-4620-a852-89177ec51eab",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2020-10-01T14:32:02.3694437+02:00",
          "CreatedByID": "b935e346-5de7-4f91-8831-058a56fcfc92",
          "IsActive": true,
          "HasChild": true,
          "ImageURL": "sample string 3"
        },
        "PetCategoryAttributeValues": [],
        "PickListValues": [
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          },
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          }
        ]
      }
    }
  ]
}

text/html

Sample:
{"petOfferInc":{"PetOfferID":"717a2b37-a8c5-4775-935e-92c0d17b5fdb","PetOfferTitle":"sample string 2","Price":1.1,"AccountID":"3fc5bc76-76a7-4c0f-990b-9d2424115231","MobileNumber":"sample string 3","PetCategoryID":1,"ExpiryDate":"2020-10-01T14:32:02.3694437+02:00","PetOfferStatusID":1,"DiscountSerial":"sample string 4","RemainingDiscountCount":1,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","IsPopular":1,"Address":"sample string 5","Description":"sample string 6","Comment":"sample string 7","Discount":"sample string 8","PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","CreatedByID":"b935e346-5de7-4f91-8831-058a56fcfc92","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"}},"PetCategoryAttributeValueList":[{"PetCategoryAttributeValueID":1,"PetCategoryAttributeID":1,"Value":"sample string 2","PetOfferID":"983035ba-0f0b-4620-a852-89177ec51eab","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","CreatedByID":"b935e346-5de7-4f91-8831-058a56fcfc92","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"},"PetCategoryAttributeValues":[],"PickListValues":[{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3},{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3}]}},{"PetCategoryAttributeValueID":1,"PetCategoryAttributeID":1,"Value":"sample string 2","PetOfferID":"983035ba-0f0b-4620-a852-89177ec51eab","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2020-10-01T14:32:02.3694437+02:00","CreatedByID":"b935e346-5de7-4f91-8831-058a56fcfc92","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"},"PetCategoryAttributeValues":[],"PickListValues":[{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3},{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3}]}}]}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.