Tags - Update API

Update the specified Tag.

Method PUT

Parameters

Name Details Type Required
id The ID of the Tag. integer Yes

Body

{
    "name": "string",
    "description": "string"
}

How to Use

fetch('https://simplecrudapi.com/api/tags/1', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Updated Tag Name',
    description: ''
  })
})
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error('Error updating tag:', error));

Response

{
    "data": {
        "id": 1,
        "name": "Education",
        "description": "Resources and information for lifelong learning."
    }
}

Try Now

fetch('https://simplecrudapi.com/api/tags/1', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'Updated Tag Name',
    description: ''
  })
})
	.then(response => response.json())
	.then(json => console.log(json))
	.catch(error => console.error('Error updating tag:', error));

Test with Open API

View Open API

Our Proudly Sponsors 🎉

© 2025 Simple CRUD API. All rights reserved.