Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Post Data for SetTemplate is invalid. #41

Closed
beriniwlew opened this issue Sep 23, 2017 · 1 comment
Closed

Post Data for SetTemplate is invalid. #41

beriniwlew opened this issue Sep 23, 2017 · 1 comment
Assignees
Labels
Bug This change resolves a defect
Milestone

Comments

@beriniwlew
Copy link

beriniwlew commented Sep 23, 2017

When updating a template, it posts the following.

Posted data:

{
  "user_key": "fdsafasdfas",
  "template_id": "254203",
  "label": {
    "en_US": "Test1"
  },
  "content": "<html></html>",
  "category_id": "20322",
  "client_id": "621261"
}

Should be

{
  "user_key": "fdsafasdfas",
  "template_id": "254203",
  "label": [{
    "en_US": "Test1"
  }],
  "content": "<html></html>",
  "category_id": "20322",
  "client_id": "621261"
}

Note that label is an array.

@Jericho Jericho self-assigned this Sep 23, 2017
@Jericho Jericho added the question Someone is asking a question label Sep 23, 2017
@Jericho Jericho added this to the 7.3.0 milestone Sep 23, 2017
@Jericho Jericho added Bug This change resolves a defect and removed question Someone is asking a question labels Sep 23, 2017
@Jericho
Copy link
Owner

Jericho commented Sep 23, 2017

This is indeed a bug. In fact it's same cause as #40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug This change resolves a defect
Projects
None yet
Development

No branches or pull requests

2 participants