Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 1 item in array without erase everything else #45

Open
daggemarren opened this issue Apr 20, 2016 · 1 comment
Open

Update 1 item in array without erase everything else #45

daggemarren opened this issue Apr 20, 2016 · 1 comment

Comments

@daggemarren
Copy link

Hi, how can i update salary for "Charlotte Doe" without erase "Chris Doe" and without send in all information for both Employees?

[
  {
    "company_id": 3,
    "company_info": {
      "active": true,
      "company_employees": [
        {
          "id": "1",
          "name": "Charlotte Doe",
          "salary": "4500"
        },
        {
          "id": "2",
          "name": "Chris Doe",
          "salary": "5200"
        }
      ]
    }
  }
]
@AymanEG
Copy link

AymanEG commented Nov 10, 2016

Can you explain how you can uodate the whole array ?! because I am stuck at this point for now, I dont know how to pass the whole array (I am using php and CURL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants